<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<?php
    session_start();
    if(isset($_SESSION['user'])){
        header("Location: loguser.php");
    }else{
        echo "No has iniciado sesion";
    }
?>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>
            Administracion de liceos on-line.
        </title>
        <link REL=StyleSheet HREF="styles/styleLogin.css" TYPE="text/css">
    </head>
    <body>
        <table align="center">
            <tr>
                <td>
                    <a href="http://localhost/index.php"><img src="img/kx.jpg" id="imLogo" alt="kxCorp" border="0" width="96" height="100"/></a>
                </td>
                
            </tr>
        </table>
        <h1 align="center">
            Bienvenidos Al Sistema OnLine de Liceos Kx.
        </h1>
        <div id="loggin">
            <form method="POST" action="loguser.php">
                <table id="tablaloggin">
                    <tr>
                        <td>
                            Usuario:
                        </td>
                        <td>
                            <input class="campotexto" type="text" name="user" size="">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Contrase&ntilde;a:
                        </td>
                        <td>
                            <input class="campotexto" type="password" name="clave" size="">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="right" id="celdaenviar">
                            <input type="submit" name="send" value="Enviar">
                        </td>
                    </tr>
                </table>
            </form>
        </div>
    </body>
</html>

